#include <stdlib.h>
#include <stdio.h>

/*
  Name: Manuel
  Copyright: 
  Author: UCP
  Date: 30/01/09 08:14
  Description: Dynamicly allocated two-dimensional array
*/



    
    typedef struct {    
	int *array; // Manual Access to the data in mat
    } matrice;
    
    int main() {
    int i, j, nrows, ncolumns;
    matrice mat;
    
    nrows=4;
    ncolumns=4;
    mat.array = (int *)(malloc(sizeof(int)*nrows*ncolumns));
    
	for(i = 0; i < nrows; i++)
		{
		for(j = 0; j < ncolumns; j++)
			
        printf("\n");
        }
    
    system("pause");
    return 0;
}
